<script type="text/javascript" src="/extra/fckeditor/fckeditor.js"></script>
<?php
echo $this->adminToolBar('newsletter', 'edit', '/admin/newsletter/add/', '/admin/newsletter/updatenewsletter/', '/admin/newsletter/delete/', '/admin/newsletter/index/');
?>
<table border="1" width="100%" cellpadding="1" cellspacing="2">
	<tr>
		<td width="15%">Template</td>
		<td width="85%">
			<select name="template_id" id="template_id" class="input-2">
				<option value="">Select Template</option>
				<?php
					foreach ($this->tpl_arr as $tpl_entry) :
				?>
					<option value="<?php echo $tpl_entry['template_id']; ?>" <?php echo ($tpl_entry['template_id'] == $this->newsletter_arr['template_id'])?"selected='selected'":"";?>><?php echo $tpl_entry['template_title']; ?></option>
				<?php	
					endforeach;
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td width="15%">Newsletter Title</td>
		<td width="85%"><input type="text" name="newsletter_title" id="newsletter_title" value="<?php echo $this->newsletter_arr['newsletter_title']; ?>" class="input-2" /></td>
	</tr>
	<tr>
		<td>Newsletter Content (English)</td>
		<td><?php echo $this->EditorFck('newsletter_content_en', $this->newsletter_arr['newsletter_content_en']); ?></td>
	</tr>
	<tr>
		<td>Newsletter Content (Russian)</td>
		<td><?php echo $this->EditorFck('newsletter_content_ru', $this->newsletter_arr['newsletter_content_ru']); ?></td>
	</tr>
	<tr>
		<td>Status</td>
		<td>
			<select name="status" id="status" class="input-2">
				<option value="">Select Status</option>
				<option value="1" <?php echo ($this->newsletter_arr['status'] == 1)?"selected='selected'":"" ?>>Published</option>
				<option value="0" <?php echo ($this->newsletter_arr['status'] == 0)?"selected='selected'":"" ?>>Unpublished</option>
			</select>
			<input type="hidden" name="newsletter_id" id="newsletter_id" value="<?php echo $this->newsletter_arr['newsletter_id']; ?>" />
		</td>
	</tr>
</table>